/*
 * @description: 生产配置文件
 * @author: cuicui
 * @Date: 2024-01-05 10:50:37
 * @LastEditTime: 2024-01-05 11:40:38
 * @LastEditors: cuicui
 */
// http默认地址
const VUE_APP_API_BASE_URL = 'http://47.93.23.42:38080'
// const VUE_APP_API_BASE_URL = 'http://192.168.3.10:38080'
// const VUE_APP_API_BASE_URL = '/api'
// socket默认地址
const VUE_APP_SOCKET_API_BASE_URL = 'ws://47.93.23.42:38080/websocket'
// const VUE_APP_SOCKET_API_BASE_URL = 'ws://127.0.0.1:38080/websocket'
// 组态设计器地址
const VUE_APP_DESIGN_PROJECT_URL = 'http://47.93.23.42:18080/mxgraph/examples/grapheditor/www/index.html'
// const VUE_APP_DESIGN_PROJECT_URL = 'http://127.0.0.1:5501/index.html'
// 直播前缀
const VUE_APP_LIVE_PATH = 'ws://192.168.3.16:8866/live'

// 设计器打开方式 0 抽屉 1 打开新标签页
// const DESIGNER_OPEN_FUN = '0'
const DESIGNER_OPEN_FUN = '1'

// 头部小铃铛数据同步频率、单位:ms
const HHEADER_DATA_DELAY = 30 * 1000

const PROJECT_CONFIG = {
  VUE_APP_API_BASE_URL,
  VUE_APP_SOCKET_API_BASE_URL,
  VUE_APP_DESIGN_PROJECT_URL,
  DESIGNER_OPEN_FUN,
  VUE_APP_LIVE_PATH,
  HHEADER_DATA_DELAY
}

window.PROJECT_CONFIG = PROJECT_CONFIG
